# filename: example8_12.py

class StudentClass:
    count = 0

    def __init__(self, name):
        self.name = name
        StudentClass.count += 1

    @classmethod
    def get_chr_count(cls):
        s = "0123456789"
        return s[StudentClass.count]


stu1 = StudentClass("Zhang San")
stu2 = StudentClass("Li Si")
print(stu1.name, stu1.get_chr_count())
print(StudentClass.get_chr_count())
